package com.dsr.vo;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import javax.persistence.Id;
import java.io.Serializable;

/**
 * (Section)实体类
 *
 * @author dsr
 * @since 2020-08-16 02:18:36
 */
@Getter
@Setter
@Document(indexName = "flower",type = "section")
public class SectionVO implements Serializable {
    private static final long serialVersionUID = 458174843740233790L;
    @Id
    private String id;

    @Field(type = FieldType.text,index = true,analyzer = "ik_max_word",searchAnalyzer = "ik_max_word")
    private String name;

}
